import request from '@/utils/request'
//导出是export default 以后 你导入的时候 必须取一个名字

export default {

  deleteVideoById(videoId) {
    return request({
      url: `/video/deleteVideo/${videoId}`,
      method: 'post',
    })
  },
  getVideo(videoId) {
    return request({
      url: `/video/getVideo/${videoId}`,
      method: 'post',
    })
  },
  updateVideo(video) {
    return request({
      url: `/video/updateVideo`,
      method: 'post',
      data: video
    })
  }
}

